﻿@{
    ViewBag.Title = "Test";
}
<script src="/Scripts/jquery-1.4.4.js" type="text/javascript"></script>
<script src="/Scripts/jquery.tmpl.js" type="text/javascript"></script>
<script src="/Scripts/jquery.tmplPlus.js" type="text/javascript"></script>
<script id="movieTemplate" type="text/x-jquery-tmpl">
<ul>
{{each response.posts}}

{{if type!="text"}}
<li>
${type}——${blogName}
${caption}
{{each photos}}

{{/each}}
</li>
{{/if}}

{{/each}}
</ul>
</script>
<div id="movieList">
</div>
<script type="text/javascript">
    $(function () {
        $.getJSON("/Dian/Test", { tag: "金毛", limit: 15, offset: 1 }, function (result) {
            var test = JSON.parse(result);
            $("#movieTemplate").tmpl(test)
                            .appendTo("#movieList");
        });
    });
</script>
